<?php /* Smarty version Smarty-3.1.14, created on 2013-07-30 20:19:38
         compiled from "libs\Smarty\templates\lista_tarefa.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1734451f65efbe8fb08-17120647%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '94ac99a46e5da51d00458b1500284da5ef5c4c28' => 
    array (
      0 => 'libs\\Smarty\\templates\\lista_tarefa.tpl',
      1 => 1375215576,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1734451f65efbe8fb08-17120647',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_51f65efc0d9e30_32847439',
  'variables' => 
  array (
    'titulo' => 0,
    'nome_tarefa' => 0,
    'status' => 0,
    'data_cadastro' => 0,
    'data_alteracao' => 0,
    'idusuario' => 0,
    'observacao' => 0,
    'idtarefa' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51f65efc0d9e30_32847439')) {function content_51f65efc0d9e30_32847439($_smarty_tpl) {?><?php  $_config = new Smarty_Internal_Config("test.conf", $_smarty_tpl->smarty, $_smarty_tpl);$_config->loadConfigVars("setup", 'local'); ?>
<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['titulo']->value;?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('title'=>$_tmp1), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<div class="container">
	
	Nova Tarefa: <img src='libs/imagens/add.png' alt='::Adicionar::' onclick='location.href="tarefa.php?action=addTarefa"' />
	<table width='100%' class='table table-striped'>
		<caption>Lista de Tarefas</caption>
		<thead>
			<th>Nome</th>
			<th>Status</th>
			<th>Data de Cadastro</th>
			<th>Data de Alteração</th>
			<th>Usuário</th>
			<th>Alterar</th>
			<th>Passar para...</th>
		</thead>
		<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['i'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['nome_tarefa']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
		<tbody>
		<tr>
			<td>
				<?php echo $_smarty_tpl->tpl_vars['nome_tarefa']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>

			</td>
			<td>
				<?php echo $_smarty_tpl->tpl_vars['status']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>

			</td>
			<td>
				<?php echo $_smarty_tpl->tpl_vars['data_cadastro']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>

			</td>
			<td>
				<?php echo $_smarty_tpl->tpl_vars['data_alteracao']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>

			</td>
			<td>
				<?php echo $_smarty_tpl->tpl_vars['idusuario']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>

			</td>
			<td>
				<?php echo $_smarty_tpl->tpl_vars['observacao']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>

			</td>
			<td align='center'>
				<img src='libs/imagens/edit.png' alt='::Editar::' onclick='location.href="tarefa.php?idtarefa=<?php echo $_smarty_tpl->tpl_vars['idtarefa']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>
&action=editTarefa"' />
			</td>
			<td align='center'>
				<img src='libs/imagens/delete.png' alt='::Deletar::' onclick='location.href="tarefa.php?idtarefa=<?php echo $_smarty_tpl->tpl_vars['idtarefa']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']];?>
&action=delTarefa"'/>
			</td>
		</tr>
		</tbody>
		<?php endfor; endif; ?>
	</table>
	
</div> <!-- /container -->
    
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>